package com.scau.clothes.sale.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.scau.clothes.sale.model.entity.Sale;
import com.scau.clothes.sale.model.entity.SaleClothes;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface SaleMapper extends BaseMapper<Sale> {
    /**
     *批量新增订单明细
     * @param saleItemList
     * @return
     */
    int batchInsertSaleItemOfCurrentSale(List<SaleClothes> saleItemList);
    List<Sale> listAllSale(Sale sale);

}
